658f3f4da899a85a02e1f559096a17cec148500b,tests/org/jasig/portal/groups/GroupsTester.java,GroupsTester,addTestEntityType,#,61
Before Change
{
try
{
Connection conn = org.jasig.portal.RDBMServices.getConnection();
Statement stmnt = conn.createStatement();
String sql = "INSERT INTO UP_ENTITY_TYPE " +
"VALUES (99, " + "'" + TEST_ENTITY_CLASS.getName() + "')";
int rc = stmnt.executeUpdate( sql );
if ( rc == 1 )
{ print("Test entity type inserted.");}
}
catch (Exception ex) { print("EntityCacheTester.addTestEntityType(): " + ex.getMessage());}
After Change
{
try
{
org.jasig.portal.EntityTypes.singleton().
addEntityType(TEST_ENTITY_CLASS, "Test Entity Type");
}
catch (Exception ex) { print("EntityCacheTester.addTestEntityType(): " + ex.getMessage());}